﻿using System;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Prism.ViewModel;
using System.Collections.ObjectModel;
using System.IO.IsolatedStorage;
using Microsoft.Phone.Shell;
using System.Collections.Generic;
using System.Threading;
using WeiboPlus.Models;

namespace WeiboPlus.Shell.ViewModel
{
    public abstract class CollectionVMBase<TData> : ViewModelBase<TData>
    {
        #region Properties


        protected ObservableCollection<TData> _items = new ObservableCollection<TData>();
        public ObservableCollection<TData> Items
        {
            get { return _items; }
            set
            {
                if (_items != value)
                {
                    _items = value;
                    RaisePropertyChanged(() => Items);
                }
            }
        }
        #endregion


        public CollectionVMBase()
        {
            Initialize();
        }
    }
}
